timezone_location_get
DateTimeZone::getLocation的別名- 返回與時區相關的定位信息
timezone_location_get()
返回給定時區的位置信息。
返回指定時區的位置信息:
<?php $tz = timezone_open ( "America/New_York" ) ; echo timezone_location_get ( $tz ) ; ?>
親自試一試
timezone_location_get ( object ) ;
參數 | 描述 |
---|---|
object | 必需。規定由timezone_open()返回的DateTimeZone 對象。 |